Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [REST API] Restore possibility to update a service configuration property with a "default" value #4120

Merged

Conversation

Agnul97
Copy link
Contributor

@Agnul97 Agnul97 commented Oct 17, 2024

With previous PRs I modified the logic of service configuration unmarshalling, reporting to clients the missing "type" values inside invalid PUT request. Doing so, I did not consider the case where a client would like to update a property with a "default" value
for example, an unlimited "password.minLength", with this block:

{
"name": "password.minLength",
"array": false,
"encrypted": false
}

Here I refined the unmarshalling check logic to restore this possibility

… to allow update to default values for properties
Copy link

codecov bot commented Oct 17, 2024

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 16.81%. Comparing base (d8d3596) to head (e5c4dce).
Report is 2 commits behind head on develop.

Files with missing lines Patch % Lines
...kapua/model/xml/adapters/XmlPropertiesAdapter.java 0.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4120      +/-   ##
=============================================
- Coverage      16.81%   16.81%   -0.01%     
  Complexity        22       22              
=============================================
  Files           2019     2019              
  Lines          52437    52437              
  Branches        4423     4423              
=============================================
- Hits            8816     8815       -1     
  Misses         43224    43224              
- Partials         397      398       +1     
Files with missing lines Coverage Δ
...kapua/model/xml/adapters/XmlPropertiesAdapter.java 94.87% <0.00%> (-2.57%) ⬇️

@Coduz Coduz added the Bug This is a bug or an unexpected behaviour. Fix it! label Oct 17, 2024
@Coduz Coduz merged commit 3690866 into eclipse:develop Oct 17, 2024
33 of 34 checks passed
@Coduz Coduz changed the title ⚡ [REST API] Restore possibility to update a service configuration property with a "default" value 🐛 [REST API] Restore possibility to update a service configuration property with a "default" value Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug or an unexpected behaviour. Fix it!
Projects
Development

Successfully merging this pull request may close these issues.

2 participants